//
//  LTFirstHeaderView.m
//  LearnTeacher
//
//  Created by yang bo on 2024/4/14.
//

#import "LTFirstHeaderView.h"
#import <SDCycleScrollView/SDCycleScrollView.h>
#import "LTFirstBannerModel.h"
@interface LTFirstHeaderView ()
@property (nonatomic, strong) IBOutlet SDCycleScrollView *cycleView;
@end
@implementation LTFirstHeaderView

- (void)awakeFromNib {
    [super awakeFromNib];
    self.cycleView.layer.cornerRadius = 12;
    self.cycleView.layer.masksToBounds = YES;
}
+ (instancetype)headerView {
    return [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil].firstObject;
}

- (void)setBannerList:(NSArray *)bannerList {
    _bannerList = bannerList;
    NSMutableArray *urlList = [NSMutableArray array];
    for (LTFirstBannerModel *model in bannerList) {
        [urlList addObject:model.img_full];
    }
    self.cycleView.imageURLStringsGroup = urlList;
}
@end
